package com.zack.designPattern.factory.simpleFactory;

public class Demo {

	public static void main(String[] args) {
		IFactory factory = new PhoneFactory();

		IProduct nokiaPhone = factory.createProduct("nokia");
		IProduct motoPhone = factory.createProduct("moto");

		nokiaPhone.doSomeThing();
		motoPhone.doSomeThing();
	}
}
